projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f6ec50
)
Replace missing exponent.
author
Jay Belanger
<jay.p.belanger@gmail.com>
Mon, 25 Aug 2008 20:53:21 +0000
(20:53 +0000)
committer
Jay Belanger
<jay.p.belanger@gmail.com>
Mon, 25 Aug 2008 20:53:21 +0000
(20:53 +0000)
lisp/calc/calc-units.el
patch
|
blob
|
history
diff --git
a/lisp/calc/calc-units.el
b/lisp/calc/calc-units.el
index f648a37cb7f878639918acee4ca99c466a61b2f8..e3da2ebd997159063e86f1ff2650e111a14261cc 100644
(file)
--- a/
lisp/calc/calc-units.el
+++ b/
lisp/calc/calc-units.el
@@
-1138,7
+1138,9
@@
Entries are (SYMBOL EXPR DOC-STRING TEMP-TYPE BASE-UNITS).")
(and un ud
(if (and (equal (nth 4 un) (nth 4 ud))
(eq pow1 pow2))
- (math-to-standard-units (list '/ n d) nil)
+ (if (eq pow1 1)
+ (math-to-standard-units (list '/ n d) nil)
+ (list '^ (math-to-standard-units (list '/ n d) nil) pow1))
(let (ud1)
(setq un (nth 4 un)
ud (nth 4 ud))